package edu.hm.vss.tcpsocketsProcedure;

import java.net.ServerSocket;

/**
 *
 * @author yasser
 */
public class TCPSocketsProcServer {

    private final int port;
    private ServerSocket server;

    public TCPSocketsProcServer(int port) {
        this.port = port;
    }

    public Services getDienst(String name) {
        if ("I".equals(name)) {
            return Services.ADDITION;
        } else if ("II".equals(name)) {
            return Services.TO_UPPER_CASE;
        } else if ("III".equals(name)) {
            return Services.TERMINATE;
        }

        //TODO Fehlermeldung
        return null;
    }

    public String toUpperCase(String str) {
        //TODO
        return str;
    }
}
